#include "Head.h"

vector<string> words;
vector<string> & Seperateword(string &str)
{
	words.clear();
	string s=str+"\n";
	string word;
	string separate(" ,\t:\v\r\n\f");                    
	string ::size_type startpos=0,endpos=0;
	while ((startpos=s.find_first_not_of(separate,endpos))!=string::npos)
		{
			endpos=s.find_first_of(separate,startpos);
			word.assign(s.begin()+startpos,s.begin()+endpos);
			words.push_back(word);
		}
		endpos=0;

		return words;
}